package com.iring.domain.common;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.Generated;
import org.hibernate.annotations.GenerationTime;

/**
 * 已开通服务信息实体
 *
 * @author wanggan
 */
@Entity
@Table(name = "t_selected_service")
public class OpenedServices implements Serializable {

    private static final long serialVersionUID = -4325513771796935452L;
    @Id
    @GeneratedValue
    @Column(name = "id")
    private Integer id;

    @Column(name = "mac")
    private String mac;

    @Column(name = "username")
    private String username;

    @Column(name = "service_id")
    private Integer sid;

    @Column(name = "remark")
    private String remark;

    @Column(name = "create_time")
    @Temporal(TemporalType.TIMESTAMP)
    @Generated(GenerationTime.INSERT)
    private Date createTime;

    @Override
    public String toString() {
        return "{id:" + id + ",mac:" + mac + ",username:" + username + ",sid:" + sid + ",remark:" + remark + ",createTime:" + createTime + "}";
    }

    public Integer getId() {
        return id;
    }

    public String getMac() {
        return mac;
    }

    public String getUsername() {
        return username;
    }

    public Integer getSid() {
        return sid;
    }

    public String getRemark() {
        return remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
